﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default1.aspx.cs" Inherits="Maticsoft.Web.Default1" %>
<%@ Register Src="Controls/eMeng.ascx" TagName="eMeng" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Register Src="Controls/copyright.ascx" TagName="copyright" TagPrefix="uc2" %>
<%@ Register Src="Controls/header.ascx" TagName="header" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <link rel="stylesheet" type="text/css" href="css/main.css"  media="screen" />
    <script src="js/showflash.js" type="text/javascript"></script>
	<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
	<script  src="js/scrollnews.js" type="text/javascript"></script>
	<script type="text/javascript" src="js/jquery.flash.js"></script>
</head>
<body>
    <uc1:header id="Header1" runat="server">
    </uc1:header>
    <div id="content">
        
             <div id="body-content">
			<div style="clear: both;"></div>
		
			<div class="third">
				<h2><!--<img  src="images/news.gif"/>-->新闻中心</h2>
	            <asp:Repeater ID="leftNewsRepeater" runat="server" OnItemDataBound="LeftNews_ItemDataBound">
                    <HeaderTemplate> <ul class="newslist"></HeaderTemplate>
                    <ItemTemplate><li>
                        +<asp:Label ID="createDate" runat="server" Text=""></asp:Label><asp:HyperLink ID="leftNewHyperLink" runat="server"><%# Eval("Focus").ToString()%></asp:HyperLink></li>
                    </ItemTemplate>
                    <FooterTemplate></ul></FooterTemplate>
                </asp:Repeater>
                    
	            <div id="news_more">
	                <ul id="more">
                        <li id="m1">
                         
	                              <a href="search.aspx?search_text=" title="查找更多新闻..." hidefocus="" target="_self"></a>
                        </li>
                    </ul>
	            </div> 
			</div>
			<div class="third">
				<h2>在行业务</h2>
                 <script type="text/javascript" language="JavaScript">
                    var imgUrl3196=new Array();
                    var imgLink3196=new Array();
                    var imgText3196=new Array();
                    var count =0;
                    var focus_width=280;
                    var focus_height=140;
                    var text_height=0;
                    var swf_height = focus_height+text_height;
                   
                   <% if (null != newsDataTable)
                    { 
                     int rowsCount = newsDataTable.Rows.Count;
                    %>
                    count=<%= rowsCount %>;
                    <%
                     
                       if (rowsCount > 0)
                        {
                          for (int n = 0; n < rowsCount; n++)
                            {
                    %>
                    imgUrl3196[<%=n+1 %>] = "ProductImages/<%=newsDataTable.Rows[n]["Image"].ToString() %>";
                    imgLink3196[<%=n+1 %>] = "<%=createImageNewsHref(newsDataTable.Rows[n]["NewsId"].ToString()) %>";
                    imgText3196[<%=n+1 %>] = "<%=newsDataTable.Rows[n]["Heading"].ToString() %>";    
                    <% }
                    }
                    }
                    %>
                    var j=0;
                    for (i=1;i<=count;i++) {
                    if( (imgUrl3196[i]!="") && (imgLink3196[i]!="") ) {
                    j++;
                    } else {
                    break;
                    }
                    }
                    var pics=""
                    var links=""
                    var texts=""
                    for (i=1;i<=j;i++) {
                    pics=pics+imgUrl3196[i]
                    if( (i<j)) {pics=pics+"|";} 
                    links=links+imgLink3196[i]
                    if( (i<j)) {links=links+"|";} 
                    texts=texts+imgText3196[i]
                    if( (i<j)) {texts=texts+"|";} 
                    }
                    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
                    document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="flash/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');
                    document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
                    document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
                    document.write('<embed src="flash/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#dfdfdf" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
                    document.write('</object>');
                    //-->
                </script> 
			</div>
			<div class="third last">
				<h2>热点推荐</h2>
                <asp:Repeater ID="newsListRepeater" runat="server" OnItemDataBound="NewsList_ItemDataBound">
                <HeaderTemplate><div id="scrollDiv"><ul></HeaderTemplate>
                <ItemTemplate><li><asp:HyperLink ID="newHyperLink" runat="server"><%# FormatString(Eval("Heading").ToString(),16)%></asp:HyperLink></li>
                </ItemTemplate><FooterTemplate></ul></div></FooterTemplate></asp:Repeater>
			</div>
			<div style="clear: both;"></div>
	    </div>
	</div>
    <uc2:copyright ID="Copyright1" runat="server" />
    <uc3:eMeng ID="EMeng1" runat="server" />
   </body>
</html>